home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / comm / uwpc201.zip / UW-SRC.ZIP / OPCODES.H < prev    next >
C/C++ Source or Header  |  1991-07-25  |  3KB  |  78 lines

  1. /*-------------------------------------------------------------------------
  2.  
  3.   OPCODES.H - Opcodes for the Termcap Compiler's abstract machine.
  4.  
  5.     This file is part of the Termcap Compiler and UW/PC source code.
  6.     Copyright (C) 1990-1991  Rhys Weatherley
  7.  
  8.     This program is free software; you can redistribute it and/or modify
  9.     it under the terms of the GNU General Public License as published by
  10.     the Free Software Foundation; either version 1, or (at your option)
  11.     any later version.
  12.  
  13.     This program is distributed in the hope that it will be useful,
  14.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.     GNU General Public License for more details.
  17.  
  18.     You should have received a copy of the GNU General Public License
  19.     along with this program; if not, write to the Free Software
  20.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22.   Revision History:
  23.   ================
  24.  
  25.    Version  DD/MM/YY  By  Description
  26.    -------  --------  --  --------------------------------------
  27.      1.0    24/03/91  RW  Original Version of OPCODES.H
  28.  
  29.   You may contact the author by:
  30.   =============================
  31.  
  32.    e-mail: rhys@cs.uq.oz.au
  33.      mail: Rhys Weatherley
  34.        5 Horizon Drive
  35.        Jamboree Heights
  36.        Queensland 4074
  37.        Australia
  38.  
  39. -------------------------------------------------------------------------*/
  40.  
  41. #ifndef __OPCODES_H__
  42. #define    __OPCODES_H__
  43.  
  44. /*
  45.  * Define the version of the terminal descriptions that are supported
  46.  * by the UW/PC program that uses them.  Only descriptions with versions
  47.  * between 0x100 and this number will be accepted.
  48.  */
  49. #define    UW_TERM_VERSION        0x100
  50.  
  51. /*
  52.  * Define the size of the terminal description header.  This is the
  53.  * offset to find the name of the terminal emulation and the base
  54.  * of the jump labels.
  55.  */
  56. #define    TERM_HEADER_SIZE    6
  57.  
  58. /*
  59.  * Define the opcodes that can appear in a Termcap program.
  60.  */
  61. enum   TermcapOpcodes {
  62.     OP_SEND= 1,OP_SEND52,OP_CR,OP_LF,OP_BS,OP_BSWRAP,OP_MOVE,
  63.     OP_CLEAR,OP_CLREOL,OP_CLREOS,OP_CLRSOL,OP_CLRSOS,OP_INSLINE,
  64.     OP_DELLINE,OP_INSCHAR,OP_DELCHAR,OP_SETATTR,OP_SETATTR_ACC,
  65.     OP_SETSCRL,OP_SETSCRL_ACC,OP_GETCH,OP_SETX,OP_SETY,OP_LOAD,
  66.     OP_LOAD_WORD,OP_LOAD_WIDTH,OP_LOAD_HEIGHT,OP_ADD,OP_ADD_WORD,
  67.     OP_ADD_WIDTH,OP_ADD_HEIGHT,OP_SUB,OP_SUB_WORD,OP_SUB_WIDTH,
  68.     OP_SUB_HEIGHT,OP_CMP,OP_CMP_WORD,OP_CMP_WIDTH,OP_CMP_HEIGHT,
  69.     OP_SWITCH,OP_SWITCH_WORD,OP_JE,OP_JNE,OP_JA,OP_JAE,OP_JB,
  70.     OP_JBE,OP_JMP,OP_JSR,OP_RET,OP_REMOTE,OP_ESCAPE,OP_ESCAPE_WORD,
  71.     OP_TAB,OP_BELL,OP_SAVEXY,OP_RESTXY,OP_GETXY,OP_GETX,OP_GETY,
  72.     OP_SCRLUP,OP_SCRLDN,OP_SET,OP_RESET,OP_TEST,OP_RESARR,OP_GETARG,
  73.     OP_GETA,OP_DEC,OP_SHIFT,OP_SETC,OP_SAVEATTR,OP_RESTATTR,
  74.     OP_INSBLANK,OP_CLIENT
  75. };
  76.  
  77. #endif    /* __OPCODES_H__ */
  78.